package demo.demo10;

public class test03 {
    public static void main(String[] args) throws ClassNotFoundException {
//通过反射获取类的Class对象
        //一个类在内存中只有一个Class对象
        //一个类在被载后，类的整个结构都会被封装在Class对象中
        Class<?> c1 = Class.forName("demo.demo10.User01");
        System.out.println(c1);
    }
}

//实体类    pojo，entity
class User01 {
    private String name;
    private int id;
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public User01() {
        this.name = name;
        this.id = id;
        this.age = age;
    }
}


